﻿@model IEnumerable<AuthenticationMethodModel>

@{
    //page title
    ViewBag.Title = T("Admin.Configuration.ExternalAuthenticationMethods").Text;
}
 
<div class="row">
    <div class="col-md-12">
        <div class="portlet light">
            <div class="section-header sticky">
                <div class="caption">
                    <i class="icon-equalizer font-red-sunglo"></i>
                    <span class="caption-subject font-red-sunglo bold uppercase"> @T("Admin.Configuration.ExternalAuthenticationMethods")</span>
                    <span class="caption-helper"></span>
                </div>
                <div class="actions">
                    <button type="submit" name="save" value="save" class="btn btn-primary"><i class="fa fa-check"></i>@T("Admin.Common.Save")</button>
                    <button type="submit" name="save" value="save-continue" class="btn blue-madison">@T("Admin.Common.SaveContinue")</button>
                    <a class="btn btn-danger" data-toggle="modal" href="#emailaccountmodel-delete-confirmation">
                        <i class="fa fa-trash-o"></i>&nbsp;@T("Admin.Common.Delete")
                    </a>
                </div>
            </div>
            <div class="portlet-body form form-horizontal form-bordered form-row-stripped">
                @Html.ProviderList(Model,
                @<div>
                    <a class='btn@(item.IsActive ? " btn-default" : " btn-success")' href='@Url.Action("ActivateProvider", new { systemName = item.SystemName, activate = !item.IsActive })'>
                        @T("Admin.Common.{0}".FormatInvariant(item.IsActive ? "Deactivate" : "Activate"))
                    </a>
                </div>)
            </div>
        </div>
    </div>
</div>

